package com.edu.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Time;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_examlabel")
@ApiModel(value = "评测表对象", description = "")
public class QuizExam {
    @ApiModelProperty(value = "评测id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "试卷id")
    private Integer paperId;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "试卷描述")
    private String description;

    @ApiModelProperty(value = "通过分数")
    private Double passScore;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "限时")
    private Time timeLimit;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastModifiedTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic  //表示是逻辑删除字段
    private String isDeleted;
}
